<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        img{
            width: 200px;
            border: solid 1px red;
        }
        img:hover{
            width: 150px;
            border: solid 1px blue;                        
        }
        form input:focus{
            background-color: blue;
            color: #fff;
        }
    </style>
</head>
<body>
    <img src="https://www.baidu.com/img/PC_880906d2a4ad95f5fafb2e540c5cdad7.png" alt="">
    <form action="">
        <label for="name">用户名:</label>
        <input type="text" name="name" id="name" placeholder="请输入用户名">
    </form>
</body>
</html>